﻿/**
 * class Main
 * 系统的入口 
 * */
package cn.nkjobsearch.main;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

import org.ictclas4j.bean.SegResult;
import org.ictclas4j.segment.SegTag;

import cn.nkjobsearch.main.SegmentAnalyseController;

public class Main {
	public static void test() {
		SegResult sr = null;
		SegTag st = new SegTag(1);
		sr = st
				.split("Experience Requirement: 1. 3+ years of software development "
						+ "experience 2. 2+ years in Linux software development "
						+ "3. Previous experience working in a team environment "
						+ "4. Experienced in respective Linux sub systems or packages"
						+ " (e.g. glibc, utilities like zip, unzip, boot scripts, "
						+ "boot loader, gtk libraries, programming languages such as"
						+ " perl, python, php, c, c++. Installation scripts, networking"
						+ " tools, daemons such as apache, cron, and shell scripting experience) ");
		String intro = sr.getFinalResult();
		System.out.println(intro);
		Pattern p = Pattern.compile("(\\S)+/(v)?n(\\S)*",
				Pattern.CASE_INSENSITIVE);
		Matcher matcher = p.matcher(intro);
		int index;
		while (matcher.find()) {
			String s = matcher.group();
			index = s.lastIndexOf('/');
			System.out.println(s.substring(0, index) + " "
					+ s.substring(index + 1));
		}
		
		sr = st.split("xxx xxx");
		intro = sr.getFinalResult();
		System.out.println(intro);
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		SegmentAnalyseController sac = new SegmentAnalyseController();
		sac.go();
//		 test_t();
		
		System.out.println("Main Over!");
	}
}